var express = require('express');
var router = express.Router();
var mysql = require('../db');

/* GET home page. */
router.get('/', function(req, res, next) {
  var result = mysql.query('select * from binner ',function (result) {
      console.log(result)
      res.render('index', {"binner":result});
  });
    // res.render('index', "");
});
module.exports = router;
